package com.kehutong.admin.dao;

import org.coraframework.orm.annotation.Dao;
import org.coraframework.orm.annotation.UpdateMapper;
import org.coraframework.orm.jdbc.execute.Condition;

/**
 * 数据库dao
 *
 * @author wupengfei
 */
@Dao
public interface CorpDatabaseDao {

    @UpdateMapper(
            mainDB = true,
            sql = "update t_corp_database set inUse = 1 where deleted = 0 and inUse = 0 and ${};"
    )
    Integer updateToUse(Condition condition);
}
